﻿using System;
using System.Collections.Generic;
using System.Configuration;

/// <summary>
/// Represents a client request's data
/// </summary>
public class ClientRequest
{
    List<Population> pops;

    /// <summary>
    /// Creates a new ClientRequest object
    /// </summary>
	public ClientRequest()
	{
        pops = new List<Population>();
	}

    /// <summary>
    /// Adds a Population object to this request
    /// </summary>
    /// <param name="p"></param>
    public void AddPopulation(Population p)
    {
        pops.Add(p);
    }

    /// <summary>
    /// Gets the list of Population objects contained by this request
    /// </summary>
    public IList<Population> Populations
    {
        get { return pops; }
    }

    /// <summary>
    /// Processes each population's data
    /// </summary>
    public void Process()
    {
        foreach (Population p in pops)
            p.Process();
    }
}
